<?php /* Smarty version 2.6.18, created on 2009-03-04 09:31:23
         compiled from userlist.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'webcontrol', 'userlist.html', 10, false),array('function', 'url', 'userlist.html', 24, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<base href="http://localhost/xuebao/" />-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户管理</title>
<link href="templates/admin/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <?php echo $this->_plugins['function']['webcontrol'][0][0]->_pi_func_webcontrol(array('type' => 'menu','name' => 'mymenu'), $this);?>

<div>
	<div class="list">
		<div class="title_list_note">用户列表</div>
<?php $_from = $this->_tpl_vars['user']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['listitem']):
?>
<div class="info">
<ul>
			<li class="list_note">
<div class="title_usernamelist" style="width:120px;">&nbsp;<?php echo $this->_tpl_vars['listitem']['username']; ?>
</div>
<?php if (1 == $this->_tpl_vars['listitem']['sex']): ?>
<div class="title_usernamelist" style="width:40px;">&nbsp;男</div>
<?php else: ?>
<div class="title_usernamelist" style="width:40px;">&nbsp;女</div>
<?php endif; ?>
<span>权限:<a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'role','action' => 'editrole','user_id' => $this->_tpl_vars['listitem']['user_id']), $this);?>
">编辑权限</a></span>
<?php $_from = $this->_tpl_vars['listitem']['roles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
    <div class="title_usernamelist" style="width:60px;">&nbsp;<?php echo $this->_tpl_vars['item']['rolename']; ?>
</div>
<?php endforeach; endif; unset($_from); ?>
<div class="title_usereditlist">&nbsp;<a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'user','action' => 'edituser','user_id' => $this->_tpl_vars['listitem']['user_id']), $this);?>
">编辑</a>&nbsp;<a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'user','action' => 'deluser','user_id' => $this->_tpl_vars['listitem']['user_id']), $this);?>
">删除</a></div>
</li>
</ul>
</div>
<?php endforeach; endif; unset($_from); ?>
</div>
</div>
</body>
</html>